package com.wyd.wenyongdaAdmin.commons.model.admin.user.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode
@ToString
@Accessors(chain = true)
public class UserAccountDTO implements Serializable {

    private static final long serialVersionUID = -234674534248203826L;

    private Long id;

    private String username;

    private String password;

    private String sail;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLogin;

    @TableField(value = "is_enabled", fill = FieldFill.INSERT)
    private Integer isEnabled;
}
